package com.hongyi.system.domain.vo;


import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hongyi.common.excel.annotation.ExcelDictFormat;
import com.hongyi.common.excel.convert.ExcelDictConvert;
import com.hongyi.common.mybatis.domain.BaseEntity;
import com.hongyi.system.domain.SysPost;
import io.github.linpeilie.annotations.AutoMapMapper;
import io.github.linpeilie.annotations.AutoMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 岗位信息表
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysPost.class)
@TableName(value = "sys_post")
public class SysPostVo implements Serializable {

    /**
     * 岗位ID
     */
    private Long postId;

    /**
     * 岗位编码
     */
    @ExcelProperty(value = "参数名称")
    private String postCode;

    /**
     * 岗位名称
     */
    @ExcelProperty(value = "岗位名称")
    private String postName;

    /**
     * 显示顺序
     */
    @ExcelProperty(value = "显示顺序")
    private Integer postSort;

    /**
     * 状态（0正常 1停用）
     */
    @ExcelProperty(value = "状态",converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "sys_normal_disable")
    private String status;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;
}